package com.lmq.builder.demo02;

public class Worker extends Builders{
    private Product product;
    public Worker() {
        product=new Product();
    }

    @Override
    Builders builA(String msg) {
        product.setBuildA(msg);
        return this;
    }

    @Override
    Builders builB(String msg) {
        product.setBuildB(msg);
        return this;
    }

    @Override
    Builders builC(String msg) {
        product.setBuildC(msg);
        return this;
    }

    @Override
    Builders builD(String msg) {
        product.setBuildD(msg);
        return this;
    }

    @Override
    Product getProduct() {
        return product;
    }
}
